package com.atguigu.tingshu.account.service;

import com.atguigu.tingshu.model.account.UserAccount;
import com.atguigu.tingshu.vo.account.AccountLockVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;

public interface UserAccountService extends IService<UserAccount> {


    /**
     * 添加账户信息
     * @param userId
     */
    void addUserAccount(Long userId);

    BigDecimal getAvailableAmount(Long userId);

    void checkAndDeduct(AccountLockVo accountDeductVo);
}
